package com.app.micaihu.bean.game;

import android.text.TextUtils;

import com.app.micaihu.bean.InstallBean;
import com.app.micaihu.custom.components.downandupload.DownloadUtils;
import com.app.utils.util.StringUtils;

import java.util.List;

/**
 * 游戏中心的实体类
 * Created by linkai on 2017/3/13.
 */
public class GameCenterEntity extends InstallBean implements IDownload {

    private String articleId;//文章id
    private String articleTitle;//文章标题
    private String articleSummary;//文章描述
    private String articleType;//文章类型
    private List<String> thumbList;//缩略图列表
    private String commentNum;//评论数量
    private String sourceIcon;//来源logo
    private String sourceType;//游戏来源
    private String gradeScore;//游戏评分
    private String downloadUrl;//下载地址
    private String appIcon;//游戏图标
    private String isRankList;//是否是排行榜 不为空则是

    //游戏排名
    private String slogan;//游戏宣传语
    private String appSize;//游戏大小
    private String gameType;//游戏类型(网友/单机)
    private String tag;//网络表示
    private String title;//
    private int type;//
    private List<GameCenterEntity> rankList;//游戏排行榜集合

    public List<GameCenterEntity> getRankList() {
        return rankList;
    }

    public void setRankList(List<GameCenterEntity> rankList) {
        this.rankList = rankList;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getGameType() {
        return gameType;
    }

    public void setGameType(String gameType) {
        this.gameType = gameType;
    }

    public String getSlogan() {
        return slogan;
    }

    public void setSlogan(String slogan) {
        this.slogan = slogan;
    }

    public String getAppSize() {
        return appSize;
    }

    public void setAppSize(String appSize) {
        this.appSize = appSize;
    }

    @Override
    public String getPackageName() {
        return packageName;
    }

    @Override
    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getArticleId() {
        return articleId;
    }

    public void setArticleId(String articleId) {
        this.articleId = articleId;
    }

    public String getArticleTitle() {
        return articleTitle;
    }

    public void setArticleTitle(String articleTitle) {
        this.articleTitle = articleTitle;
    }

    public String getArticleSummary() {
        return articleSummary;
    }

    public void setArticleSummary(String articleSummary) {
        this.articleSummary = articleSummary;
    }

    public String getArticleType() {
        return articleType;
    }

    public void setArticleType(String articleType) {
        this.articleType = articleType;
    }

    public List<String> getThumbList() {
        return thumbList;
    }

    public void setThumbList(List<String> thumbList) {
        this.thumbList = thumbList;
    }

    public String getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(String commentNum) {
        this.commentNum = commentNum;
    }

    public String getSourceIcon() {
        return sourceIcon;
    }

    public void setSourceIcon(String sourceIcon) {
        this.sourceIcon = sourceIcon;
    }

    public String getSourceType() {
        return sourceType;
    }

    public void setSourceType(String sourceType) {
        this.sourceType = sourceType;
    }

    public String getGradeScore() {
        return gradeScore;
    }

    public void setGradeScore(String gradeScore) {
        this.gradeScore = gradeScore;
    }

    public String getDownloadUrl() {
        return downloadUrl;
    }

    public void setDownloadUrl(String downloadUrl) {
        this.downloadUrl = downloadUrl;
    }

    public String getIsRankList() {
        return isRankList;
    }

    public void setIsRankList(String isRankList) {
        this.isRankList = isRankList;
    }

    public String getAppIcon() {
        return appIcon;
    }

    public void setAppIcon(String appIcon) {
        this.appIcon = appIcon;
    }

    @Override
    public String getIUrl() {
        return getDownloadUrl();
    }

    @Override
    public String getIPath() {
        return DownloadUtils.FILE_START_NAME + getPackageName();
    }

    @Override
    public String getITitle() {
        return getArticleTitle();
    }

    @Override
    public String getIPackageName() {
        return getPackageName();
    }

    @Override
    public String getITag() {
        if (TextUtils.isEmpty(this.tag)) {
            return StringUtils.macthUrl(getDownloadUrl());
        } else {
            return tag;
        }
    }

    @Override
    public String getIGameId() {
        return getArticleId();
    }

    @Override
    public String getIAppIcon() {
        return getAppIcon();
    }

    @Override
    public String getIGameSummary() {
        return getSlogan();
    }

    @Override
    public String getISize() {
        return getAppSize();
    }

    @Override
    public int getStatus() {
        return status;
    }
    private int status;//4的时候 已下架


    public void setStatus(int status) {
        this.status = status;
    }
}
